using System;
using System.Collections.Generic;

namespace MyHomeworkWebAPi.Models.ef
{
    /// <summary>
    /// 互动记录实体
    /// </summary>
    public partial class Interaction
    {
        /// <summary>
        /// 互动记录ID
        /// </summary>
        public Guid InteractionId { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public Guid UserId { get; set; }

        /// <summary>
        /// 商品ID
        /// </summary>
        public Guid ProductId { get; set; }

        /// <summary>
        /// 互动类型（1：收藏；2：浏览）
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 关联的用户
        /// </summary>
        public virtual User User { get; set; } = null!;

        /// <summary>
        /// 关联的商品
        /// </summary>
        public virtual Product Product { get; set; } = null!;
    }
} 